package com.lanou.service.imp;

import com.lanou.bean.BlogBean;
import com.lanou.mapper.BlogMapper;
import com.lanou.service.BlogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by dllo on 18/2/26.
 */
@Service
public class BlogServiceImp implements BlogService{

    @Resource
    private BlogMapper blogMapper;

    @Override
    public void addBlog(BlogBean blogBean) {
        blogMapper.addBlog(blogBean);
    }

    @Override
    public List<BlogBean> selectAll() {
        return blogMapper.selectAll();
    }

    @Override
    public BlogBean showBlog(int bid) {
        return blogMapper.showBlog(bid);
    }

    @Override
    public List<BlogBean> showMyBlog(int uid) {
        return blogMapper.showMyBlog(uid);
    }


}
